﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="SearchFlight.aspx.cs" Inherits="SearchFlight" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

    <script src="Scripts/jquery.datepick.js" type="text/javascript"></script>

    <link href="CSS/redmond.datepick.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        $(document).ready(function(event) {
            $("#<%= tbCalDepart.ClientID %>").datepick({
                multiSelect: 999,
                showTrigger: '#calImg', minDate: 1, maxDate: '+11m'
            });
            $("#<%= tbCalReturn.ClientID %>").datepick({
                multiSelect: 999,
                showTrigger: '#calImg', minDate: 1, maxDate: '+11m'
            });
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="display: none">
        <img src="Images/calendar-blue.gif" alt="PopUp" id="calImg" class="trigger" />
    </div>
    <div>
        <table align="center" style="width: 100%; height: 50px; border-color: #3399FF; background-color: #66CCFF;"
            cellpadding="5">
            <tr align="center" valign="middle">
                <td width="80px">
                    <asp:HyperLink ID="HyperLink7" runat="server" Font-Bold="True" ForeColor="#FF3300"
                        NavigateUrl="~/SearchFlight.aspx">1.Search</asp:HyperLink>
                </td>
                <td width="80px">
                    <asp:HyperLink ID="HyperLink8" runat="server" Font-Bold="True" ForeColor="#666666">2.Confirm<br />Request</asp:HyperLink>
                </td>
                <td width="80px">
                    <asp:HyperLink ID="HyperLink9" runat="server" Font-Bold="True" ForeColor="#666666">3.Choose<br />Route</asp:HyperLink>
                </td>
                <td width="80px">
                    <asp:HyperLink ID="HyperLink10" runat="server" Font-Bold="True" ForeColor="#666666">4.Choose<br />Flight</asp:HyperLink>
                </td>
                <td width="80px">
                    <asp:HyperLink ID="HyperLink12" runat="server" Font-Bold="True" ForeColor="#666666">5.Choose<br />Seat Class</asp:HyperLink>
                </td>
                <td width="80px">
                    <asp:HyperLink ID="HyperLink11" runat="server" Font-Bold="True" ForeColor="#666666">6.Passengers Detail</asp:HyperLink>
                </td>
                <td width="80px">
                    <asp:HyperLink ID="HyperLink13" runat="server" Font-Bold="True" ForeColor="#666666">7.Payment</asp:HyperLink>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <asp:Panel runat="server" Style="padding-left: 15px" align="left" DefaultButton="Button1">
        <h3 align="center">
            Search Flight</h3>
        <asp:RadioButton ID="RadioButton1" runat="server" GroupName="FlightType" Text="One Way"
            AutoPostBack="True" Checked="True" OnCheckedChanged="RadioButton1_CheckedChanged" />
        <asp:RadioButton ID="RadioButton2" runat="server" GroupName="FlightType" Text="Round Trip"
            AutoPostBack="True" OnCheckedChanged="RadioButton2_CheckedChanged" />
        <br />
        <br />
        <table>
            <tr>
                <td colspan="4" style="font-weight: bold; font-size: medium; padding-top: 5px; padding-bottom: 5px;">
                    Origin Location
                </td>
            </tr>
            <tr>
                <td align="left">
                    From
                </td>
                <td>
                    <asp:TextBox ID="tbFromCity" runat="server" ValidationGroup="location">
                    </asp:TextBox>
                </td>
                <td align="right">
                    Country
                </td>
                <td>
                    <asp:TextBox ID="tbFromCountry" runat="server" ValidationGroup="location"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbFromCity"
                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="location">*</asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbFromCountry"
                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="location">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="font-weight: bold; font-size: medium; padding-top: 5px; padding-bottom: 5px;">
                    Destination Location
                </td>
            </tr>
            <tr>
                <td align="left">
                    To
                </td>
                <td>
                    <asp:TextBox ID="tbToCity" runat="server" ValidationGroup="location">
                    </asp:TextBox>
                    &nbsp;
                </td>
                <td align="right">
                    Country
                </td>
                <td>
                    <asp:TextBox ID="tbToCountry" runat="server" ValidationGroup="location"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbToCity"
                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="location">*</asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbToCountry"
                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" ValidationGroup="location">*</asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
        <br />
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Depart Day"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="tbCalDepart" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Return Day" Visible="False"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="tbCalReturn" runat="server" Visible="False"></asp:TextBox>
                </td>
            </tr>
        </table>
        <br />
        <table>
            <tr>
                <td colspan="6" 
                    style="font-weight: bold; font-size: medium; padding: 5px 0px 5px 0px">
                    Number of Passenger</td>
            </tr>
            <tr>
                <td>
                    Adult :&nbsp;&nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="ddlAdult" runat="server" ValidationGroup="location">
                        <asp:ListItem Value="0">
            </asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                </td>
                <td>
                    Children( &lt;12 ) : &nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="ddlChild" runat="server" ValidationGroup="location">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                </td>
                <td>
                    &nbsp;&nbsp; Senior ( &gt;65 ) :&nbsp;</td>
                <td>
                    &nbsp;
                    <asp:DropDownList ID="ddlSenior" runat="server" ValidationGroup="location">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" ErrorMessage="CustomValidator"
            OnServerValidate="CustomValidator1_ServerValidate" ValidationGroup="location">
        </asp:CustomValidator>
        <br />
        <asp:CustomValidator ID="CustomValidator2" runat="server" Display="Dynamic" ErrorMessage="CustomValidator"
            OnServerValidate="CustomValidator2_ServerValidate" ValidationGroup="location">
        </asp:CustomValidator>
        <br />
        <asp:Label ID="Label5" runat="server" ForeColor="Red" Visible="False"></asp:Label>
        <br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Search Flight"
            ValidationGroup="location" />
    </asp:Panel>
</asp:Content>
